<!DOCTYPE html >
<!--  Website template by freewebsitetemplates.com  -->
<html><!-- InstanceBegin template="/Templates/TDPetshop.dwt" codeOutsideHTMLIsLocked="false" -->

<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Account Setting</title>
<!-- InstanceEndEditable -->
<script src="http://code.jquery.com/jquery-latest.js" language="javascript" type="text/javascript"></script>
<meta  charset=iso-8859-1" />
	<link href="css/style.css" rel="stylesheet" type="text/css" />
	<!--[if IE 6]>
		<link href="css/ie6.css" rel="stylesheet" type="text/css" />
	<![endif]-->
	<!--[if IE 7]>
        <link href="css/ie7.css" rel="stylesheet" type="text/css" />  
	<![endif]-->
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<!--<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>-->
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<!--<script language="javascript" src="jquery.js" type="text/javascript"></script>
<script language="javascript" src="jquery.validate.min.js" type="text/javascript"></script>  -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="head" -->
<?php
require_once("validLogin.php");
require_once("Connections/cnn.php");
Validlogin();
?>
<!-- InstanceEndEditable -->
</head>

<body>

	  
			<div id="header">
	           		<a href="index.php" id="logo"><img src="images/logo.gif" width="310" height="114" alt="" title=""></a>
					<ul class="navigation">
						<li class="active"><a href="index.php">Home</a></li>
						<li><a href="petmart.php">PetMart</a></li>
						<li><a href="about.php">About us</a></li>
						<li><a href="petguide.php">PetGuide</a></li>
						<li><a href="contact.php">Contact us</a></li>
                        <li><a href="login.php">Account</a></li>
					</ul>
			</div>
			
			<div id="body">
			
					<!-- InstanceBeginEditable name="body" -->
                    <?php
					$sID = $_SESSION['memberID'];
                    $sql_query = @mysql_query("SELECT * FROM Members WHERE ID='{$sID}'");
					$member = @mysql_fetch_array($sql_query);
					?>
			       	<div id="content">
				       <div class="content">
                       <div id="profile">
                        <table border="0">
                        <tr>
                        <td colspan="4">
                        	<a href="changeAvatar.php"><img src="<?php echo "$member[Avatar]" ?>" title="Click to change your avatar" width="150"></a>
                        	<a class="a" href="logout.php"><img src="images/logout.png" width="40" 
title="Logout"></a>
						</td>
                        </tr>
                    	<tr>
                        <td class="caption" colspan="4">+ Account Information</td>
                        </tr>
                        <tr>
                        <td colspan="4">&nbsp;</td>
                        </tr>
                        <tr>
                        <td><b>Email</b></td><td>:</td><td colspan="2"><?php echo "$member[Email]" ?></td>
                        </tr>
                        <tr>
                        <td><b>Password</b></td><td>:</td><td><a href="changepass.php">Change</a></td>
                        </tr>
                         <tr>
                        <td><b>Role</b></td><td>:</td><td colspan="2"><?php echo "$member[Role]" ?></td>
                        </tr>
                        <tr>
                        <td><b>Day Joined</b></td><td>:</td><td colspan="2"><?php echo "$member[DayJoin]" ?></td>
                        </tr>
                        <tr>
                        <td><b>Last Login</b></td><td>:</td><td colspan="2"><?php echo "$member[LastLogin]" ?></td>
                        </tr>
                        <tr>
                        <td colspan="4">&nbsp;</td>
                        </tr>
                        <tr>
                        <td class="caption" colspan="4">+ Personal Information</td>
                        </tr>
                        <form name="informationForm" action="editaccount.php">
                                <tr>
                                <td colspan="4">&nbsp;</td>
                                </tr>
                                <tr>
                                <td><b>Full Name</b></td><td>:</td><td colspan="2"><?php echo "$member[Firstname] $member[Lastname]" ?></td>
                                </tr>
                                <tr>
                                <td><b>Phone</b></td><td>:</td><td colspan="2"><?php echo "$member[Phone]" ?></td>
                                </tr>
                                <tr>
                                <td><b>DOB</b></td><td>:</td><td colspan="2"><?php echo "$member[DOB]" ?></td>
                                </tr>
                                <?php
								if($member['Gender'] == 1)
								{
									$sgender = "Female";
								}
								else
								{
									$sgender = "Male";
								}
								?>
                                <tr>
                                <td><b>Gender</b></td><td>:</td><td colspan="2"><?php echo "$sgender" ?></td>
                                </tr>
                                <tr>
                                <td><b>ID card</b></td><td>:</td><td colspan="2"><?php echo "$member[IDcard]" ?></td>
                                </tr>
                                <tr>
                                <td><b>Address</b></td><td>:</td><td colspan="2"><?php echo "$member[Address]" ?></td>
                                </tr>
                                <tr>
                                <td><b>City</b></td><td>:</td><td colspan="2"><?php echo "$member[City]" ?></td>
                                </tr>
                                <tr>
                                <td><b>Job</b></td><td>:</td><td colspan="2"><?php echo "$member[Job]" ?></td>
                                </tr>
                                <tr>
                                <td colspan="4">&nbsp;</td>
                                </tr>
                                <tr>
                                <td colspan="4" align="center">
                                <input class="button" type="submit" value="Edit" />
                                <input class="button" type="button" value="Cancel" onclick="location.href='index.php'" />
                                <input class="button" type="button" value="Logout" onClick="location.href='logout.php';"></td>
                                </tr>
                    			</table>
                        </form>
                        </div>
                       
                       </div>
                       <div id="advertise">					
							<a href="petmart.html"><img src="images/discount.jpg" width="300" height="790" alt="Pet Shop" title="Pet Shop"></a>
					    </div>
		     		</div>
				   	<!-- InstanceEndEditable -->
				   	
                    <marquee class="marquee">Lorem ipsum dolor sit amet, consectetuer adepiscing elit, sed diam nonummy nib.</marquee>
                    
                    <div class="featured">
				        <ul>
							<li><a href="index.php"><img src="images/organic-and-chemical-free.jpg" width="300" height="90" alt="Pet Shop" title="Pet Shop" ></a></li>
							<li><a href="index.php"><img src="images/good-food.jpg" width="300" height="90" alt="Pet Shop" title="Pet Shop" ></a></li>
							<li class="last"><a href="index.php"><img src="images/pet-grooming.jpg" width="300" height="90" alt="Pet Shop" title="Pet Shop" ></a></li>
						</ul>
				        
				   </div>
				  
			
			</div>
			
			<div id="footer">
			        <div class="section">
						<ul>
							<li>
								<img src="images/friendly-pets.jpg" width="240" height="186" alt="Pet Shop" title="Pet Shop">
								<h2><a href="index.php">Friendly Pets</a></h2>
								<p>
								   Lorem ipsum dolor sit amet, consectetuer adepiscing elit,  sed diam nonummy nib. <a class="more" href="index.php">Read More</a> 
								</p>
							</li>	
							<li>
								<img src="images/pet-lover2.jpg" width="240" height="186" alt="Pet Shop" title="Pet Shop">
								<h2><a href="index.php">How dangerous are they</a></h2>
								<p>
								   Lorem ipsum dolor sit amet, cons ectetuer adepis cing, sed diam euis. <a class="more" href="index.php">Read More</a> 
								</p>
							</li>	
							<li>
								<img src="images/healthy-dog.jpg" width="240" height="186" alt="Pet Shop" title="Pet Shop">
								<h2><a href="index.php">Keep them healthy</a></h2>
								<p>
								   Lorem ipsum dolor sit amet, consectetuer adepiscing elit,  sed diam nonu mmy. <a class="more" href="index.php">Read More</a> 
								</p>
							</li>	
							<li>
								
								<h2><a href="index.php">Love...love...love...pets</a></h2>
								<p>
								     Lorem ipsum dolor sit amet, consectetuer adepiscing elit,  sed diameusim. <a class="more" href="index.php">Read More</a> 
								</p>
								<img src="images/pet-lover.jpg" width="240" height="186" alt="Pet Shop" title="Pet Shop">
							</li>	
						</ul>
					</div>
					<div id="footnote">
						<div class="section">
						  TommyDo designed &copy; 2014 <a href="index.php">Petshop</a>. All Rights Reserved.
						</div>
					</div>
			</div>
			
	
</body>
<!-- InstanceEnd --></html>